package cn.xiaopengstack.infrastructure.persistent.strategy.notify;

import cn.xiaopengstack.domain.trade.model.valobj.NotifyTypeEnum;
import cn.xiaopengstack.types.exception.AppException;

/**
 * 通知策略服务
 * @author jiangyangang
 */
public interface INoticeStrategyService{

    /**
     * 执行通知
     */
    void executeNotice(NotifyStrategyFactory.DynamicContext dynamicContext) throws AppException;

    /**
     * 定义类型
     * @return
     */
    NotifyTypeEnum type();
}
